package com.twu.biblioteca;

/**
 * A class that holds information relevant to a book.
 */
public class Book {
    private int id;
    private String title;
    private String author;
    private boolean reserved;

    public Book(int id, String title, String author) {
        this.id = id;
        this.title = title;
        this.author = author;
        reserved = false;
    }

    public int getId() {
        return id;
    }

    public String getTitle() {
        return title;
    }

    public String getAuthor() {
        return author;
    }

    public boolean isReserved() {
        return reserved;
    }

    public void reserveBook() {
        reserved = true;
    }
}
